package com.asianrapid.service.impl.sys;


import com.asianrapid.dao.LqraDao;
import com.asianrapid.dao.LqrjDao;
import com.asianrapid.model.sys.LqraEntity;
import com.asianrapid.model.sys.LqrjEntity;
import com.asianrapid.service.sys.LqraService;
import com.asianrapid.service.sys.LqrjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "lqraServiceImpl")
public class LqraServiceImpl implements LqraService {

	@Autowired
	private LqraDao lqraDao;

	@Override
	public List<LqraEntity> getalllqra(int pageSize, int start) {
		int stats = 0;
		List<LqraEntity> alllqra = lqraDao.getalllqra(stats,pageSize,start);
		return alllqra;
	}
	@Override
	public int getCount() {
		int stats = 0;
		int result =  lqraDao.getCount(stats);
		return result;
	}

	@Override
	public void insertlqra(LqraEntity lqraEntity){
		lqraEntity.setStats(0);
		lqraDao.insertlqra(lqraEntity);
	}

	@Override
	public void updatelqra(LqraEntity lqraEntity){
		lqraDao.updatelqra(lqraEntity);
	}

	@Override
	public LqraEntity getById(Integer groupId){

		return lqraDao.getById(groupId);

	}

	@Override
	public void deletelqra(List<String> groupId){

		lqraDao.deletelqra(groupId);
	}
}
